import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    userInfo: {},
    code: '',
    token: '',
    userId: '',
    indexFresh: false, // 刷新首页
    walletFresh: false, // 刷新钱包
    taskFresh: false ,// 刷新任务
		userFresh: false, // 刷新我的
  },
	mutations: {
		SET_USEERINFO: (state, userInfo) => {
			state.userInfo = userInfo
		}
	}
})

export default store